Hungary, Slovakia lose fight against EU migration deal