President Barack Obama signed into law a bipartisan deal approved by Congress Wednesday to reopen the federal government and avert an unprecedented debt default, ending a bitter and partisan 16-day impasse.