McCarthy wins nomination for house speaker