Government acted unlawfully when it sent patients into care homes without coronavirus testing