the deal was worked out last week in moscow by officials of the national aeronautics and space administration and the russian space agency , which is increasingly desperate for money to fulfill its commitments .