A Boeing spacecraft had to return back to Earth after going off course during an outer space mission.