State legislature approves penalties for rioters