Letitia James, the state attorney general, has declined to represent Gov. Kathy Hochul in a court proceeding over how to care for thousands of asylum seekers.
Mr. Cox, who wrote on Twitter during the Capitol riot that Mike Pence was a “traitor,” defeated Kelly Schulz, who had been backed by Gov. Larry Hogan. The Democratic primary was too close to call.