Millions of public sector workers, including teachers and police, are to get pay rises between 5-7%.