Cavity engineering of Hubbard U via phonon polaritons