Climate and the Solar Magnetic Field