This is Jacob (Israel) prophesying over his son, Judah.
Shiloh is Christ Jesus. So, once Christ has come the sceptre of Judah is ended.
This means the kingdom would be taken from Judah and given to Christ and those who believe in and receive Him.