The nation’s largest sheriff’s department agreed to a sweeping settlement Tuesday with the U.S. Justice Department over allegations of long-standing civil rights abuses by deputies in the Mojave Desert.