The Senate has seen a flurry of action on the final sitting day of the year, with chaotic scenes and accusations flying.