After weeks of negotiations, the president signed the bill Saturday, which avoids the U.S. from running out of cash and defaulting on loans.