Nine Democratic California lawmakers asked the state’s attorney general on Monday to seek a court opinion on whether former President Donald J. Trump should be excluded from Republican primary ballots under the 14th Amendment for his role in the Capitol Riot.