A High Court judge ruled that the Government had failed to comply with its obligations under a European directive to protect rural residents and communities from possible harmful exposure to toxic chemicals during crop spraying .