Rigidity theorem for a static triple with half harmonic Weyl curvature