Additional district and sessions judge R B Sharma also imposed a fine of Rs 1.92 lakh on the convicts yesterday, police said.
On April 6, 2011, the convicts had killed Haji Hameed and grievously injured four others with sharp-edged weapons for resisting harassment of the girl, Baghpat SHO Munindra Singh said.
Two of the injured -- Naseebuddin and Sabir -- had succumbed to injuries during treatment, he said, adding that all the 19 convicts were in jail since 2011.