About 9 million people with federal student loans will start getting their bills from a new agency after one of the government’s biggest servicers said Thursday that it will end its contract with the Department of Education in December.