Democrats and advocates see the bill as a necessary step for a 21st-century grid amid a larger project of electrification.