Hungary accepts transition period for workers