When a ship founders, it fills with water and sinks. Similarly the carriage foundered (that is, sank) in the snowdrift (deep pile of snow formed by the wind). The trapped (sunk) carriage then had to be freed from the snowdrift. In other words, it had to be extricated.