If you accept the UA routing you'll get original routing credit from Delta and you can credit the full Y UA ticket to your favorite Star Alliance program.
The full Y ticket will have been paid for at an extremely low interline price, so don't credit it to any program that is dollars based.
David