After years of failed attempts, a major energy permitting bill has finally cleared both chambers of Congress.