Pentagon issues rules aimed at stopping extremism