U.S. President Joe Biden and top congressional Republican Kevin McCarthy have reached a tentative deal to raise the federal government's $31.4 trillion debt ceiling, ending a months-long stalemate, two sources familiar with the negotiations said on Saturday.