Thousands of people have held a rally in Los Angeles, California, as part of nationwide protests against a controversial oil pipeline in North Dakota.