Stocks closed mostly higher as investors examined the details of the tax-reform plan proposed by Republicans.