For more than a decade, U.S. law has barred NASA from spending federal money on bilateral cooperation with China in space.