President Trump signed the Bipartisan American Affordability and Jobs Act into law Thursday, a sweeping overhaul of federal permitting that supporters say will speed energy projects and lower costs — while exposing a widening rift between Democrats' green base and their labor allies.