A federal judge in Camden, New Jersey, has ruled that a school district violated federal law when it refused to enroll a homeless student because of a residency dispute.