The problem is that you applied a noninvertible transformation to the equation, i.e. scaling by $\,3,\,$ which is not reversible because $\,3\,$ is noninvertible mod $\,9.\,$ Such noninvertible transformations may introduce $\rm\color{#c00}{extraneous}$ roots. In detail we have $\!\bmod 9\!:\ 2x\equiv 3\,\Rightarrow\, 6x\equiv 9\equiv 0,\,$ and $\,6x\equiv 0\!\iff\! 9\mid 6x\!\iff\! 3\mid 2x\!$ $\iff\! 3\mid x\!\iff\! x\equiv \color{#c00}{0,3},6\pmod{\! 9},\,$ but notice that $\,x\equiv \color{#c00}{0,3}\,$ are $\rm\color{#c00}{not}$ roots of $\,2x\equiv 3\pmod{\! 9},\,$ even though they are roots of $\,6x\equiv 9.$
But if we scale by an invertible $\,a\,$ then $\,b\,x\equiv c\,\smash[t]{\underset{\color{#c00}{\ \times\ a^{-1}}}{\color{#c00}{\Longleftarrow}}\!\!\color{#0a0}{\overset{\times\ a}\Longrightarrow}} \ ab\,x\equiv ac,\,$ since the direction $\,(\color{#c00}{\Longleftarrow})$ follows by multiplying the RHS by $\,\color{#c00}{a^{-1}}.\,$ So the LHS and RHS congruences have exactly the same set of roots. Hence no extraneous roots are introduced by scaling by an invertible element, i.e. the scaled congruence is equivalent to the original congruence.