Long-awaited bill sets out the government's plans to transition away from fossil fuels and bolster energy security, including through new wind farms and solar capacity