The legislative package of 31 bills , with final passage coming in the Assembly after an all-night session , was similar to the deal announced earlier this week by Gov. Arnold Schwarzenegger and legislative leaders from both parties .