After months of wrangling, US lawmakers have agreed to a roughly $900 billion package of pandemic aid, including direct payments for many Americans and support for businesses and unemployment programs.