Lufthansa agrees €9bn bailout with German government