A second man has been charged after allegedly attempting to light a synagogue on fire and spraying anti-Semitic graffiti on the building.