New York City is poised to bar most new buildings from using natural gas within a few years, after lawmakers voted Wednesday to make the United States’ most populous city a showcase for a climate-change-fighting policy that has been both embraced and blocked elsewhere. If Democratic Mayor Bill de Blasio signs the measure, as expected,…