Kamala Harris won the state, marking the ninth consecutive time Maryland voters backed the Democratic nominee for president.