You can no longer rent movies on Xbox Live. Microsoft discontinued the Xbox Video service in 2019.
You can still purchase movies and TV shows on the Microsoft Store (integrated with Xbox Live). Purchases are permanent and can be watched unlimited times.
Check each service's terms for rental durations and details.