L&T gains as consortium wins Rs 3,799 crore railway order