Hájek-Rényi-type inequality and strong law of large numbers for some dependent sequences