Students will need federal permission to stay longer than four years in the US and universities will lose the power to extend visas.