The Internet giant Google said Friday that the Beijing government had renewed its license to operate a Web site in mainland China, ending months of tension after the company stopped censoring search results in China and moved some operations out of the country.