Mr. Perry announced his intention to flout the law in a March 28 letter to Attorney General Eric Holder Jr. He implied that Texas had its own rape-prevention measures and did not need federal oversight. Federal data consistently tell a different story. A 2013 study by the Bureau of Justice Statistics found that Texas had more prison facilities with high rates of inmate-on-inmate sexual violence than any other state.

There are several rules that seem to particularly irk Mr. Perry. One requires states to periodically audit rape prevention programs. Another requires them to certify that their prisons are in compliance. Mr. Perry complains that he couldn’t possibly certify compliance because he can’t audit all of the facilities covered by the law at once. However, the rules make clear that only one-third of the covered facilities need to be audited each year.

Moreover, the Justice Department has explained that the compliance process is flexible — the governor does not have to rely solely on audit data but can take into account internal reports or any other information that could be used to gauge whether the system meets the requirements of the law.

Mr. Perry also takes issue with a provision that sets minimum staffing levels for juvenile facilities so that young people are adequately protected from predators, including those who might be part of the institution’s staff. The levels set in the rules are consistent with those used in a dozen states and are deemed necessary to keep young people safe. The states are not required to reach those levels until 2017.

Another rule that troubles Mr. Perry bars nonmedical staff members of the opposite sex from viewing inmates while they are showering, using the toilet or changing their clothing — except in emergencies or incidentally during routine cell checks. He argues absurdly that it would violate gender discrimination laws because it would somehow impede women from doing their jobs properly and advancing professionally. And finally, he suggests that the rules were foisted on the states without consultation — even though the Justice Department consulted widely for nearly three years and solicited extensive comment from all relevant constituencies, including corrections officials.