I'm that sense, a phased array can help by filtering out signals that are not in line of sight with your satellite, but only one satellite fix does not provide a great estimate of the receivers position. Esp when signal strength is used to estimate bearing.
Caveat btw: for both starlink and GPS, the satellite you are talking to will not always be "up". For GPS in particular, it is possible that some of the satellites are only barely above the horizon. So an antenna that only looks "up" is generally not what you want anyway, which makes ground-based jammer more effective again.
It's an arms race though.
Phased array beamforming absolutely helps make jamming more difficult. Jamming is all about reducing the signal to noise ratio in the channel until it is unusable. Directional antennas (of which phased arrays are electronically steerable versions) have more gain in the direction of the desired signal and less towards unwanted signals located in another direction.