Stability of Capillary Hypersurfaces with Planar Boundaries