Attorneys for Jessie Hoffman claimed the method violated his religious freedoms