Can an employer do this to me?

Is this a private company? Either way, yes it’s legal. Don’t bet on that reimbursement check either.