A transport problem with queue penalization effect