I dont think it is legal... try to have a conversation with your employer explaining it is illgal and that you already purchased tickets...if not then ask about formal complain procedure within the organization... may be HR complaint procedure... then try getting in touch with your embassy and/or ministry of labour