Ukraine's parliament has approved a law that grants special status to the Ukrainian language and makes it mandatory for public sector workers.