The president said he wanted Congress to stop big investors from buying the houses, which has driven up rents and set obstacles for first-time buyers in some markets.