Legislature passes key spending bills