Singapore has passed the country's first law designed to protect workers against discrimination and penalize employers who discriminate.