Is Trump allowed to deploy National Guard on US soil?

To quell protests in LA, Trump is relying on a directive under a rarely used federal law that gives him powers in times of rebellion.
More info