Variational inequalities for the spectral fractional Laplacian