NSW bans new coal mines in landmark shift towards fossil fuel phase-out