Consistent Approximations in Composite Optimization