'American Taliban' wins right to group prayer in prison