Hungary and Slovakia face setback in bid to reject refugees