D-term inflation after spontaneous symmetry breaking