Israels parlament har röstat igenom en resolution mot upprättandet av en palestinsk stat.