A Spanish court has barred the wife of Prime Minister Pedro Sánchez from leaving the country and ordered her to appear before a judge twice monthly, citing flight risk concerns in what opposition groups say is part of broader scrutiny of the prime minister's family.