A group of two dozen conservative Pennsylvania lawmakers filed a federal lawsuit on Thursday against Gov. Josh Shapiro, President Joe Biden, and state elections officials, alleging they had usurped the state Legislature’s authority to direct presidential elections in Pennsylvania.