Argentina's proposal to swap its U.S. law bonds for debt governed by local law is illegal and cannot be carried out, U.S. District Judge Thomas Griesa said Thursday at a hearing in New York.

On Tuesday, Argentine President Cristina Kirchner unveiled a plan to swap the country's defaulted restructured bonds for new debt governed by Argentine law. If the plan is approved by Argentine legislators, Argentina would deposit payments on...