The structure and superconductivity for $\mathrm{Y}{\mathrm{Ba}}_{2}{({\mathrm{Cu}}_{1\ensuremath{-}x}{\mathrm{Fe}}_{x})}_{3}{\mathrm{O}}_{y}$ and $\mathrm{Gd}{\mathrm{Ba}}_{2}{({\mathrm{Cu}}_{1\ensuremath{-}x}{\mathrm{Fe}}_{x})}_{3}{\mathrm{O}}_{y}$ ceramics ($0\ensuremath{\le}x\ensuremath{\le}0.15$) have been studied by x-ray diffraction and resistivity measurements. In each family of materials (but more rapidly in the Gd ceramics), increasing Fe substitution leads to the stabilization of the tetragonal perovskite structure and suppression of superconductivity, apparently owing to pair breaking by the Fe moments. Anomalous behavior at higher Fe substitution is attributed to the combined influence of Gd and Fe moments.