Democrats and Republicans have found rare common ground on housing policy as a climate solution.