The Trump administration has rescinded its policy that would bar international students who only take online courses from staying in the US.