Going on instinct, I read 1 and 3 such that "like a baby" and "as if he were a baby" modify only "pampered him;" while in 2 and 4 they modify both characterizations. Others may disagree. The effect of the comma may not apply as strictly as in the case of a non-essential clause.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.