The Effect of Seafloor Weathering on Planetary Habitability