Sick leave is required, vacation isn't so that part is legal. Vacation can be changed by the decision of the employer.

The only place he may have made a mistake was if he took already earned vacation/PTO away from you. That is very specific California law and one of the California folks will be along shortly I'm sure.