The federal government will cap the number of foreign students who can study in Australia next year. The limit will be set at 270,000.