On convergence of functionals with unilateral constraints