House passes housing bill with 396 votes, alters investor rules