The legislation marks one of Pelosi’s first acts since retaking the role of House Speaker after Democrats took back control of the lower chamber of Congress in the midterm elections. Many Democrats promised swift action on gun control during last year’s campaign season.