US President Barack Obama on Monday signed into law a 2-year budget deal, avoiding a potentially drastic debt default.