Congress avoids shutdown but leaves a mess