Huw Merriman tells ministers to ‘get a grip’ as he slams U-turn on schools