Stable Object Placement Under Geometric Uncertainty via Differentiable Contact Dynamics