People with a lung scarring condition that leaves them fighting for breath could be helped by a new medication, research suggests.