Senate passes budget plan after long vote-a-rama