Complex sentence: All charges against the "Enterprise" crew are dropped; however, as punishment for disobeying a superior officer (as chronicled in the previous film), Kirk is demoted to the rank of Captain.
Split into simpler sentences: All charges against the "Enterprise" crew are dropped. Kirk, being punished for disobeying a superior officer, is demoted to the rank of Captain.