President Joe Biden expressed optimism a debt ceiling crisis could be avoided as he left for a foreign trip.