EU lawmakers vote to take measures against Hungary