A Munich court has handed down the toughest possible sentence over the 2025 attack that killed a mother and her toddler and injured dozens more.