Man pleads guilty to holding 2-year-old hostage