The ruling Wednesday by U.S. District Judge K. Michael Moore in Miami means Trump’s lawsuit seeking a return to the social-media platform will be moved to the Northern District of California, near the headquarters of Google owner Alphabet Inc. Moore agreed with YouTube that its terms of service allow the company to choose the forum for such lawsuits.