The two companies will study how Ford’s future electric vehicle batteries can supply power to homes to help reduce energy costs.