Originally used to limit federal troops involvement in Confederate state elections, the Posse Comitatus Act, 18 U.S. Code, Section 1385, does not include the Navy or the Marine Corps.
Interesting…
Sauce:
https://www.rand.org/content/dam/rand/pubs/monograph_reports/MR1251/MR1251.AppD.pdf