Some 4,000 National Guardsmen and 700 Marines were ordered to the Los Angeles area following protests over immigration raids.