Humility and Equipments
It all comes down to timestamps.
Both Humility and the Warhammer want to apply in Layer 6 (the ability adding and ability removing layer). An aura or equipment will receive a new timestamp when it becomes attached to a object or player. So if the equipment is attached to a creature, then Humility enters the battlefield, Humility will remove the abilities granted by the equipment. But, if the equipment becomes attached to a new creature after Humility enters the battlefield, the equipment will receive a new timestamp and it will give the abilities to the equipped creature.
Looking back at the original situation, if the Warhammer is currently attached to a creature and then Humility enters the battlefield, the creature will not have lifelink or trample anymore. But, after the Humility enters the battlefield, if you attached the Warhammer to a new creature, the Warhammer receives a new timestamp, so that new creature will have trample and lifelink. So if you want the equipped creature to gain the abilities granted by the equipment, you need to attach it to the creature after Humility enters the battlefield, to ensure that the equipment has a more recent timestamp.
613.6d If an Aura, Equipment, or Fortification becomes attached to an object or player, the Aura, Equipment, or Fortification receives a new timestamp at that time.