A second man has been charged over the Newtown Synagogue attack following a dramatic arrest at a Sydney hotel.