Global Lipschitz continuity for minima of degenerate problems