EU reaches agreement on rules for minimum wages