Grammar schools are set to be the biggest losers after ministers axed funding for academies to fight admission appeals.