Jordan has held the first trial of six Shia Muslims accused of promoting their ideology before a military court in the Sunni majority country.