A US federal judge blocked federal agents from using “pepper-spray or similar nonlethal munitions and crowd dispersal tools” against protesters.