Deadline drama as US Senate bickers over spending bill