Hamawy’s victory secures him the Democratic nomination for New Jersey’s 12th Congressional District, a strongly Democratic seat.