President signs extension of military courts bill into act