Up against a deadline, Congress passed and sent a waiting President Barack Obama legislation late Wednesday night to avoid a threatened national default and end the 16-day partial government shutdown, the culmination of an epic political drama that placed the U.S. economy at risk.