Spain to vote on key housing law ahead of elections