Dissipative effects on the superfluid-to-insulator transition in mixed-dimensional optical lattices