A main road will be closed overnight so that railway engineers can inspect a bridge