Voters' concerns over the rising cost of living during the 2024 election cycle helped propel Donald Trump to a second term in the White House and Republicans to secure control of Congress.