Carbon capture is having a moment. Companies such as Chevron Corp. are building technology to capture carbon dioxide from smokestacks while others such as Microsoft Corp. are investing in startups working to yank the greenhouse gas out of the air directly.