The Dakota Access Pipeline must be shut down and emptied of oil within 30 days while a lengthy environmental review of the project is conducted, a federal judge ruled Monday.