Rabat - Morocco's government approved a law Friday ending the trial of civilians in military courts, a practice heavily criticised by human rights groups.