Lufthansa deal ends costly strikes