The Trump administration has confirmed tough new rules for foreign students in the US, set to take effect in September.