New South Wales will prohibit new greenfield coal mines, prioritizing renewable energy and aiming for net-zero targets by 2050.