Lawmakers have questions about the Pentagon’s increased keenness to take partial ownership stakes in companies, demanding details from defense officials while they weigh the need for legislation.