The baby’s 7months she should be starting to wean there is no reason baby cannot go more than an hour or have some formula from dad.
Reading between the lines there when it says that dad made space for her to breastfeed it sounds more like this mum is using bf as an excuse to keep dad away and the court will no much much more than this simple news article states.
What’s best for the child is a relationship with both parents. Put two 10 year olds next to each other you won’t tell who was formula or bf and it’s not like the women’s being made to stop either just that the baby needs to basically be available for contact and will be fed during contact either formula or expressed milk if she can.