The current Commandant is fairly leftist if you check out his statements and what he backs. My guess is that using Marines was green lighted by the Pentagon.
Had those Marines gone to a Trump Rally in uniform, they’d be separated faster than you can say Semper Fi.