President Trump agreed to meet with top lawmakers from both parties in a last-ditch bid to avoid a federal government shutdown.