Grants to help city prepare for terrorism