The US leader takes credit for saving the space programme in Nasa’s first lunar flyby in more than 50 years.