US Congress agrees short-term deal over budget and debt ceiling