Legislation aims to promote diversity and equality in the workplace but critics say it will result in job losses