Contentious legislation unexpectedly stretched the session to a full 30 days of work.