Debt ceiling talks edge towards a deal