The prime minister has said the move will free up money for frontline NHS services, with 9,000 jobs expected to go.