A Maryland judge has ordered Johns Hopkins University to pay $6 million to students affected by the shift to remote learning during the COVID-19 pandemic.